YUI.add("participantBadgePlugin", function(Y) {
    var Lang = Y.Lang,
        Node = Y.Node;

	// A plugin class designed to animate Widget's show and hide methods.
	function ParticipantBadgePlugin(config) {
		ParticipantBadgePlugin.superclass.constructor.apply(this, arguments);
	}
	
	// Define Static properties NAME (to identify the class) and NS (to identify the namespace)
	ParticipantBadgePlugin.NAME = 'participantBadgePlugin';
	ParticipantBadgePlugin.NS = 'participantBadgePlugin';
	
	// Attribute definitions for the plugin
	ParticipantBadgePlugin.ATTRS = {
	};
	
	// Extend Plugin.Base
	Y.extend(ParticipantBadgePlugin, Y.Plugin.Base, {
		
	  // Automatically called by Base, during construction
		initializer: function(config) {  
			this._participantBadge; 
			this.doAfter('_onListRendered', this._initParticipantBadge);
		},
	 	destructor : function() {
	 		this._participantBadge.remove();
        	this._participantBadge.destructor();
        },
		_initParticipantBadge : function(){  
			this._participantBadge = new Y.ParticipantBadge({
				triggerNodes:Y.ParticipantsList.ITEM_CLASS_NAME,
				shim:false,
				zIndex:2
			}); 
			this._participantBadge.render();  
		}
	});
	Y.ParticipantBadgePlugin = ParticipantBadgePlugin;
} , 0.1 );
            